﻿@using Critex.Helpers
@model Critex.ViewModels.ImageCollectionAreaViewModel
@{
    Layout = null;
}
@Html.ActionLink("Add new image", "AddNewImageAreaToCollection", new RouteValueDictionary() { { "collectionId", Model.AreaId }, { "sectionId", Model.SectionId } })
<div class="clear"></div>
@foreach (var area in Model.Areas)
{
    <div class="thumbnail">
        @Html.WriteContentAreaEditField(area, Model.SectionId)
        <div class="delete">
            @Html.ActionLink("Delete", "DeleteImageArea", new RouteValueDictionary() { { "id", area.Id }, { "sectionId", Model.SectionId } })
        </div>
    </div>
}
<div class="clear"></div>
